package com.example.entity.matirx;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(description = "保养结果")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "keep_res")
public class KeepRes implements Serializable {
    /**
     * 保养结果id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "保养结果id,更新时必须",example = "1")
    private Integer id;



    /**
     * 项目id
     */
    @TableField(value = "keep_content_id")
    @ApiModelProperty(value = "项目id，必须",example = "1")
    private Integer keepContentId;

    /**
     * 保养记录id
     */
    @TableField(value = "keep_record_id")
    @ApiModelProperty(value = "保养记录id,必须",example = "1")
    private Integer keepRecordId;

    /**
     * 保养结果 1为情况正常，无需保养 2为保养成功 3为保养异常
     */
    @TableField(value = "res")
    @ApiModelProperty(value = "保养结果 1为情况正常，无需保养 2为保养成功 3为保养异常",example = "1")
    private Integer res;

    /**
     * 详细说明
     */
    @TableField(value = "detial")
    @ApiModelProperty(value = "详细说明")
    private String detial;

    @TableField(value = "creator",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "")
    private String creator;

    @TableField(value = "updater",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "")
    private String updater;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "")
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}